/**
 * Created by Administrator on 2017/5/20 0020.
 */
$(function(){
    var cfix=$("#clearfix-wrapper");
    var fixTop=cfix.offset().top;
    $(document).scroll(function(){
        var srcTop=$(document).scrollTop();
        if(srcTop>=fixTop){
            cfix.css("position","fixed").css("top",0).css("z-index",10);
            $("#main-wrapper").css("marginTop",cfix.height())
        }else {
            cfix.css("position","static")
            $("#main-wrapper").css("marginTop",0)
        }
    })
})

$(function () {
    var showTop=$("#shoot-top")
    $(document).scroll(function () {
        var srcTop=$(document).scrollTop();
        if(srcTop>1280){
            showTop.fadeIn(1000)
        }else {
            showTop.fadeOut(1000)
        }
    })
})
